package com.example.sixtrainingdemo.view;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.sixtrainingdemo.R;
import com.example.sixtrainingdemo.utils.SpUtils;

public class OtherActivity extends AppCompatActivity implements View.OnClickListener {


   private Button mBtnLogout;
   private SpUtils mSpUtils;
   private RelativeLayout mRlAddStudent;
   private RelativeLayout mRlAddShop;
   private RelativeLayout mRlChPassword;
   @Override
   protected void onCreate(@Nullable Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_other);

      mRlAddStudent = findViewById(R.id.look_round_view);
      mRlAddStudent.setOnClickListener(this);

      mRlAddShop = findViewById(R.id.look_shop_view);
      mRlAddShop.setOnClickListener(this);
      mSpUtils = new SpUtils(this);
   }

   @Override
   public void onClick(View v) {
      int id = v.getId();
        if (id == R.id.look_round_view) { //跳转查看用户界面
         Intent intent = new Intent(OtherActivity.this, RoundActivity.class);
         startActivity(intent);
      }else if (id == R.id.look_shop_view) { //跳转添加课程界面
         Intent intent = new Intent(OtherActivity.this, ShopActivity.class);
         startActivity(intent);

      }


   }
}
